﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace Smatime.Web.Models
{
    public class UserStore : BaseEntity
    {
        public long CompanyUserId { get; set; }
        public long CompanyStoreId { get; set; }
        public override BaseEntity FromDataRow(DataRow row)
        {
            CompanyUserId = (long)row["CompanyUserId"];
            CompanyStoreId = (long)row["CompanyStoreId"];
            return base.FromDataRow(row);
        }

        public override void ToDataRow(DataRow row)
        {
            row["CompanyUserId"] = CompanyUserId;
            row["CompanyStoreId"] = CompanyStoreId;
            base.ToDataRow(row);
        }
    }
}